<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>8-继承</title>
	</head>
	<body>
		<script type="text/javascript">
			//Es6的类的定义方式
			class Father{
				//默认的构造函数constructor(arguments){}
			}
			
			//儿子
			class Son extends Father{
				//默认的构造函数constructor(arguments){}
			}
			//使用关键字new实例化对象
			var s = new Son();
			console.log(s);//constructor: class Son {}
		</script>
	</body>
</html>
